# Create your views here.

from django.shortcuts import render_to_response
from hightcharts.models import ChartOne
from django.shortcuts import render_to_response, get_object_or_404
from django.http import HttpResponse

def index(request):
    users = ChartOne.objects.all()
    #for u in users:
    #    print u.question
    #    print u.votes
    #    print u.pub_date
    #return render_to_response('index.html',{'users':u})
    return render_to_response('index.html',{'users':users})
    #return HttpResponse("<h1>hello wrold!</h1>%s")
